﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Menu.aspx.cs" Inherits="CoolCode.Web.UI.Menu"
    Theme="Default" EnableViewState="false" EnableViewStateMac="false" EnableSessionState="ReadOnly" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
        function toggleMenu() {
            var sideImage = document.getElementById('t');
            var mainFrame = parent.document.getElementById('main');
            var title = document.getElementById('SCRHDR');
            var leftBar = document.getElementById('lLeft');
            if (sideImage && mainFrame) {            
                if (mainFrame.cols == "180,*") {
                    mainFrame.cols = "13,*";
                    sideImage.src = '/content/images/butOpen.gif';
                    sideImage.alt = '展开边栏';
                    title.style.display = 'none';
                    leftBar.className = 'sidebarHide';
                } else {
                    mainFrame.cols = "180,*";
                    sideImage.src = '/content/images/butClose.gif';
                    sideImage.alt = '折叠边栏';
                    title.style.display = '';
                    leftBar.className = 'sidebar';
                }
            }
        }	
    </script>

</head>
<body class="Menu">
    <form id="form1" runat="server">
    <div class="Title" >
        <asp:Label ID="SCRHDR" runat="server" Text="管理列表"  />
    </div>
    <div class="Item" >
        <a id="lLeft" class="sidebar" href="#" onclick=" toggleMenu();return false;" >
            <img id="t" src="Content/images/butClose.gif" border="0" alt="折叠边栏" /></a><!-- onfocus="this.blur()"-->
        <asp:TreeView ID="tvMenu" runat="server" ExpandDepth="1" SkinID="tvMenu" />
    </div>
    </form>
</body>
</html>
